import { default as utils, addNumber } from './utils.js'
import { version, author } from '../package.json'
// import _ from 'lodash-es'
import { compact } from 'lodash-es'
// import { greet } from '@/commonjs/common.cjs'
// @ts-ignore
import * as bableTest from '@/babeljs/index.js'
// import * as tsTest from '@/typescript/index.js'
const printAnswer = bableTest.printAnswer

const buildTime = '__build_time__'
const indexFn: () => void = function () {
  utils.foo()
  const result = addNumber(2, 2, 9, 1.09)

  console.log('当前包的版本号是：', version)
  console.log('当前包的作者是：', author)
  console.log('main end...', result)
  console.log('lodash-es方法:', compact([0, 1, false, 2, '', 3]))
  // console.log(greet('test, commonjs'))
  console.log('__helloworld__, \t -<')
  console.log(buildTime)
}
const test123 = 'aaa'
// console.log('🚀💥💥 ~ test123: --》》', test123)
console.log('🚀💥💥 ~ printAnswer: --》》', printAnswer)

export {
  test123,
  // printAnswer,
  indexFn
}
export * from './utils/index'
export * from './web/index'
export default {
  indexFn,
  addNumber,
  printAnswer
  // add: tsTest.add,
  // attribute: tsTest.attribute
}
